<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Storage Policy</title>
<meta content="no-cache" http-equiv="Pragma"> 
<meta http-equiv="Cache-Control" content="no-cache"> 
<meta http-equiv="Expires" content="0">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<base target="_self" />
<link rel="stylesheet" type="text/css" href="../web/pagestyle.css"/>
<style>
.td{
width:60px;
text-align:right;
height:119px;
}
.td div{
height:18px; 
vertical-align:text-bottom;
}
.num{
width:17px;
height:17px;
text-align:center;
}
</style> 
<script>
    document.write("<script src='/cgi-bin/storage.cgi?n=" + Math.random() + "'></" + "script>");
</script>
<script src="../web/DrawRec_en.js"></script>
<script>
function on_load(){
    loadStroage();      
} 
function SubmitData(){
    var str = "";
    for(var i =0;i<168;i++){             
        var obj = document.getElementById(i.toString());        
        if(obj.style.backgroundColor == "#2b7dbb" )str += '1';            
        else if(obj.style.backgroundColor == "#a9a9a9")str += '0';     
    }
    document.form1.plan.value=str;  
    document.form1.submit();   
    window.close(); 
}
</script>
</head>
<body onload="on_load()" style="margin-top:5px">
<form id="form1" name="form1" method="post" action="Stroage" >
<table cellpadding="0" cellspacing="3">
<tr><td style="width:100px" align="right">Channel ID:</td><td><select name="chnId" id="chn" onchange="loadData(this)" class="select"></select></td>
<td width="100px" align="right">Recycle:</td><td><select name="recycleMode" class="select">
<option value="0">Day </option> 
<option value="1">Item </option> 
</select></td>	
	</tr>
<tr><td align="right">File Suffix:</td><td><input type="text" name="filenameSuffix" class="text" readonly="readonly"/></td><td width="100px" align="right">StorageEn:</td><td><input type="checkbox" name="recordEnable" value="1"/>Yes</td></tr>
<tr><td align="right">Split Time(MIN):</td><td><input type="text" name="splitTime" class="text"/></td><td align="right">Circle:</td><td><input type="checkbox" name="recycleRecEnable" value="1"/>Yes</td></tr>
</table>
<fieldset><legend>Storage Policy</legend>
<table width="100%" align="center"><tr><td align="right" valign="bottom" width="25%">ON</td><td width="15%"><input type="button" style="width:17px;height:17px;background-color:#2b7dbb"/></td><td align="right" valign="bottom" width="15%">OFF</td><td><input type="button" style="width:17px;height:17px;background-color:#a9a9a9"/></td></tr></table>
<br />
<table cellpadding="0" cellspacing="0" id="container">
<tr><td class="td" valign="top"><div><div>Sun.</div><div>Mon.</div><div>Tue.</div><div>Wed.</div><div>Thu.</div><div>Fri.</div><div>Sat.</div><div>&nbsp;</div></div></td><td align="left" valign="top"><div onmousedown="initselect();" onmousemove="startselect();startdrag();" ><div id="Layer1" style="width:408px;height:119px" ><div id="selectarea" style="cursor:move;position:absolute; width:0px; height:0px; z-index:100;border:1px #000000 dashed ;visibility:hidden"></div></div></div><table id="nums" cellpadding="0" cellspacing="0"><tr></tr></table></td></tr>
</table>
</fieldset>
<br />
<input type="hidden" name="plan"/>
<div class="tab_block" ></div>
<br />
<div align="center"><table width="74" border="0" cellspacing="0" cellpadding="0"><tr><td height="18" class="TOPBG" onmouseover="this.className='TOPBGOVER';" onmouseout="this.className='TOPBG';" onclick="SubmitData()">OK</td></tr></table></div>
</form>
</body>
</html>
